<!DOCTYPE html>
<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo-default.css"/>
	<link rel="stylesheet" type="text/css" href="css/tabelacliente.css"/>        
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript" src="js/util.validate.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type='text/javascript' src='js/cliente.cadastro.alterar.js'></script>
	<title>Cadastro</title>        
    </head>
    <body>
	<div id='centro'>
            <p>Alterar Cadastro de Cliente</p>
            <fieldset>
            <form name="cadastrocliente" id="alterarcadastrocliente" method="post" action="../control/ControleAlterarCadastroCliente.php">
                <table>
                    <thead>
                        <tr>
                            <th id="td1">CPF</th>
                            <th id="td2">Nome Completo</th>
                            <th id="td3">Esqd</th>
                            <th id="td4">Cartão</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type="text" name="cpf" id="cpf" class="input-text" maxlength="11" autofocus/></td>
                            <td><input type='text' name="nome" id="nome" class="nome" readonly/></td>
                            <td><input type='text' name='esquadrao' id="esquadrao" class="input-text" readonly/></td>
                            <td><input type='number' name='cartao' id="cartao" class="input-text" readonly/></td>
                        </tr>
                    </tbody>
                </table>
                <table>
                    <thead>
                        <tr>
                            <th id="td5">Telefone</th>
                            <th id="td6">Endereço</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type='text' name='telefone' id="telefone" class="input-text" readonly/></td>
                            <td><input type='text' name='endereco' id="endereco" class="nome" readonly/></td>
                        </tr>
                    </tbody>
                </table>
                <table>
                    <thead>
                        <tr>
                            <th id="td7">Observação</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type='text' name='observacao' class="nome" id="observacao" readonly/></td>
                        </tr>
                    </tbody>
                </table>
                <input type="submit" name="controle" value="Cadastrar"/>
                <button type="button" id="voltar" name='voltar' value='voltar'>Voltar</button>
            </form>
            </fieldset>
	</div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>